home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Interprogram Messaging Manager / IPM MessageBoard / MyIPM.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-23  |  1.9 KB  |  52 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------------------
  2.  *
  3.  * Simple Sample AYS Application Framework
  4.  *
  5.  * ©1991 Apple Computer
  6.  *
  7.  -------------------------------------------------------------------------------------*/
  8. /*
  9.  * commands.c -- called in response to menu commands or appleevents
  10.  *
  11.  * change history:
  12.  *
  13.  * SJF        11/6/91        1.0d1        initial coding
  14.  *
  15.  */
  16.  
  17. #ifndef __QUEUES__
  18. #include "queues.h"
  19. #endif
  20.  
  21. OSErr InitIPM(void);
  22. void CloseIPM(void);
  23.  
  24. OSErr MakeLocalQueue(IPMContextRef *context,IPMQueueRef *queueRef);
  25. OSErr RemoveLocalQueue(IPMContextRef context,OCERecipient *queueRef);
  26. OSErr GetLocalQueueLocation(OCERecipient *queue,StringPtr queueName,char *xtnValue);
  27.  
  28. OSErr SendIPMMessage(StringPtr message,OCEPackedRecipient *packedQueue);
  29.  
  30. OSErr GetIPMDestination(OCEPackedRecipient **pmPackedRecipient);
  31. void GetDestAsString(short destNum,StringPtr destStr);
  32. void GetOurMessageType(IPMMsgType *msgType);
  33. void GetOurSender(IPMSender *sender);
  34. OSErr GetIdentity(void);
  35. OSErr GetIdentityAndSaveIt (void);
  36. OSErr GetNewIdentityAndSaveIt (AuthIdentity *theIdentity);
  37.  
  38. void r2cString(RString *rStr,char *cStr);
  39.  
  40. pascal void OurIPMNotificationProc(IPMQueueRef pmQ, IPMSeqNum pmSeq, IPMNotificationType noteType, unsigned long userData);
  41. void EnqueueNotification(IPMQueueRef pmQ, IPMSeqNum pmSeq, IPMNotificationType noteType);
  42. void ProcessNotification(MyQElemPtr qBlock);
  43. OSErr ProcessNewMessage(IPMQueueRef pmQ, IPMSeqNum pmSeq);
  44. OSErr BailMessageProcessing(IPMParamBlock *pmBlock,OSErr err);
  45.  
  46. OSErr GetServerQueue(OCEPackedRecipient **pmPackedRecipient);
  47. OSErr GetSingleAttrForRecipient(OCEPackedRecipient **pmPackedRecipient,
  48.                                 const OCEAttributeTypeIndex stringIndex);
  49.                                 
  50. OSErr OpenQueueOnRemoteMachine(StringPtr Qname,OCEPackedRecipient **pmPackedRecipient);
  51. OSErr MyCreateQueue(StringPtr TheQName,OCEPackedRecipient **pmPackedRecipient);
  52. OSErr MyOpenQueue(OCERecipient *RecP);